package cn.net.shuxing.yifu.common.service;

import cn.net.shuxing.yifu.common.bean.CardType;
import cn.net.shuxing.yifu.common.mapper.CardTypeMapper;
import cn.net.shuxing.yifu.common.util.CommonExample;
import org.springframework.stereotype.Service;

@Service
public class CardTypeService extends BaseService<CardType, CardTypeMapper> {

    public CardType getByCardTypeName(String name)
    {
        CommonExample example = new CommonExample(CardType.class);
        example.equals("name",name);
        CardType cardType = mapper.selectOneByExample(example);
        complete(cardType);
        return cardType;
    }
}
